package com.yyg.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yyg.entity.MainMenu;
import com.yyg.mapper.MenuDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuService extends ServiceImpl<MenuDao, MainMenu> {
    @Autowired
    private MenuDao menuDao;
    public List<MainMenu> getMenus(){
        return menuDao.getlist();
    }
}
